package com.yf.dxs.wo.req.msg;

import com.yf.dxs.wo.entity.WoPhoneMsgDO;
import com.yf.dxs.wo.redis.AbstractRedisMsg;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WoPhoneMsg {

    private Long wid;

    private String phone;

    private String oldPhone;

    public WoPhoneMsgDO toEntity(){
        WoPhoneMsgDO entity = new WoPhoneMsgDO();
        entity.setWid(wid);
        entity.setPhone(phone);
        entity.setOldPhone(oldPhone);
        return entity;
    }

}
